<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>WindowVectorOutput</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">WindowVectorOutput()</font></b></p>
<p><b>语法</b></p><blockquote>

VectorOutputID = <font color="#3A3966"><b>WindowVectorOutput</b></font>(#Window [, Unit])</blockquote>

</blockquote>
<b>概要</b><br><blockquote>

返回给定窗口的 OutputID 来执行矢量绘图操作。它将使用 PureBasic <a href="../vectordrawing/index.html">VectorDrawing 库</a>，并且只能使用在<a href="../vectordrawing/startvectordrawing.html">StartVectorDrawing()</a> / <a href="../vectordrawing/stopvectordrawing.html">StopVectorDrawing()</a>之间的块中使用。在<a href="windowvectoroutput.html">WindowVectorOutput()</a>中分配的内存在<a href="../vectordrawing/stopvectordrawing.html">StopVectorDrawing()</a>函数中释放。 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Window</i></td>
<td width="90%"> 
要使用的窗口. 

</td></tr>
<tr><td><i>单位 (可选)</i></td>
<td> 
指定用于在绘图输出的测量距离的单位。窗口的默认单位是 <font color="#924B72">#PB_Unit_Pixel</font>. 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_Unit_Pixel</font>     : Values are measured in pixels (or dots in case of a printer)
  <font color="#924B72">#PB_Unit_Point</font>     : Values are measured in points (1/72 inch)
  <font color="#924B72">#PB_Unit_Inch</font>      : Values are measured in inches
  <font color="#924B72">#PB_Unit_Millimeter</font>: Values are measured in millimeters
</font></pre>

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>



The OutputID of the given window to perform 2D rendering operation on it using <a href="../vectordrawing/startvectordrawing.html">StartVectorDrawing()</a>. 


 


</blockquote><p><b>备注</b></p><blockquote>



Content drawn on a window will be erased whenever the window or a part of it is covered 
by another window, moved outside of the screen or when the window is hidden or minimized. So to keep 
the drawn content visible, it must be redrawn after every <font color="#924B72">#PB_Event_Repaint</font> event. 
A more convenient alternative is to draw the content to an image via <a href="../image/imagevectoroutput.html">ImageVectorOutput()</a> 
and display it as <a href="../gadget/imagegadget.html">ImageGadget()</a> in the application window and if 
necessary, update it with <a href="../gadget/setgadgetstate.html">SetGadgetState()</a>. This way all needed 
refreshing will be handled by the ImageGadget. 


 


</blockquote><p><b>参阅</b></p><blockquote>

<a href="../vectordrawing/startvectordrawing.html">StartVectorDrawing()</a>, <a href="windowoutput.html">WindowOutput()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=windowoutput.html>WindowOutput()</a> - <a href="index.html">Window 索引</a> - <a href="windowwidth.html">WindowWidth()</a> -&gt;<br><br>



</body></html>